# 如果遇到字符串的话，一定要记得加上双引号或者单引号，因为它们是一个整体
'''print("你好")
a="汤雅洁"
print(a)
b="我今年十九岁"
print(a+b)

a = 10
b = "20"
c = int(b)
c = (a+c)
print(c)

a = "白菜"
b = "3.5"
print(f"{a}大甩卖{b}一斤")#这行语句中的f是format
print("{}大甩卖{}一斤".format(a, b))
print("%s%s/斤" % (a,b))#这行语句中的s是string字符串

a = "皇家水院"
b = "21计算机二班"
c = "汤雅洁"
d = "19"
e = "女"
print(f"学校:{a}班级:{b}姓名:{c}年龄:{d}性别:{e}")

a = int(input())
print(f"你好{a}")

a = int(input())
b = int(input())
print(a+b)
a = float(input())
b = float(input())
print(a+b)
a = input()
b= input()
print(int(b)+int(a))

a = int(input())
b = float(input())
print(a+b)

a = int((input()))
if a > 18:
    print("成年")
else:
    print("未成年")


a = int(input())
if a > 10:
    print("你输入的数字不符合规定")
elif a < 1:
    print("你输入的数字不符合规定")
else:
    if a <= 5:
        print("A班")
    else:
        print("B班")

a =input()
b =int(input())
if a == "女":
    if b >=18:
        print("大女孩")
    else:
        print("小女孩")
else:
    if b >=18:
        print("大男孩")
    else:
        print("小男孩")

a =input()
b =input()
if a == "晴天" and b == "星期天":
    print("出去玩")
else:
    print("写作业")

#&&->and
#||->or
#!->not

a = input()
b = input()
c = not((a > b) and (a > b or a < b))
print(c)

# for循环语法：
# for 变量 in range(循环次数)
# range会生成一个数字列表

for i in range(10):
    print(i, end=" ")  # end=" "横排输出，end="\t"空四个或者八个空格，end="\n"换行空格
if a > 18:
    b = "nj"
    for b in range(10):
        print(b)

for i in range(int(input())):
     if i % 2 == 1:
        print(i)

for i in range(10):
    if i ==5:
        break
    print("你好")

# break与continye在大部分语言里的通用
for i in range(10):
    print(i)
    continue  # 跳过本次循环，语句过后的循环不会输出
    print("你好")
for i in range(0):
    print(i)
    continue

str1 = "abcdefg"
print(len(str1))
'''
a = "123456789"
print(a[-3:])
